package com.items.hystixUtils;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FallbackController {

    @GetMapping("/fallbackA")
    public Response fallbackA() {
        Response response = new Response();
        response.setCode("100");
        response.setMessage("服务暂时不可用");
        return response;
    }
}


class Response{
    String Code;
    String Message;

    public void setCode(String code) {
        Code = code;
    }

    public void setMessage(String message) {
        Message = message;
    }
}